package com.pgeg;

import com.pgeg.listener.RegistryListener;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.api.ModInitializer;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class ModMain implements ModInitializer, ClientModInitializer {

    private static final Logger LOGGER = LogManager.getLogger("PGEG");

    @Override
    public void onInitialize() {
        RegistryListener.registerAll();
    }


    @Override
    public void onInitializeClient() {
        RegistryListener.registerClientAll();
    }

    public static Logger getLogger() {
        return LOGGER;
    }

}
